package com.yotoodesign.dianba.fragment;


import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.TextView;

import com.yotoodesign.dianba.R;


public class AboutFragment extends BaseFragment {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.about_fragment, container,false);
		TextView title = (TextView)view.findViewById(R.id.mainTitle);
		title.setText("关于"+getString(R.string.app_name));
		
		ImageButton commonBack = (ImageButton)view.findViewById(R.id.commonBack);
		commonBack.setOnClickListener(new View.OnClickListener() {
			FragmentManager fm = getActivity().getSupportFragmentManager();
			@Override
			public void onClick(View v) {
				fm.popBackStack();
			}
		});
		
		return view;
	}
	

	@Override
	public void updateListView() {
		
	}
	
}
